<?php foreach($cat as $cat_rec): ?>
	<form id="frm-edit-cat" action="<?php echo site_url("mimin_jonu/updatecategory/".$cat_rec['jonu_category_id']) ?>" method="post">
		<div id="category-col-bg">
			<label>Nama Kategori</label>
			<input class="form-control input-sm" type="text" name="cat_name" value="<?php echo $cat_rec['jonu_category_name'] ?>" required="required"/>		
			<label>Alias</label>
			<input class="form-control input-sm" type="text" name="cat_alias" value="<?php echo $cat_rec['jonu_category_alias'] ?>" required="required"/>		
			<label>Hastag</label>
			<input type="text" name="cat_hastag" class="form-control input-sm" value="<?php echo $cat_rec['jonu_category_hastag'] ?>" required="required"/>
		</div>
		<div id="category-col-sm">
			<label>Deskripsi</label>
			<textarea name="cat_desc" class="form-control" rows="7" required="required"><?php echo $cat_rec['jonu_category_desc'] ?></textarea>				
		</div>
		<input class="btn btn-sm btn-jonu" style="clear:both; float:left !important;" name="btn_edit_cat" value="Update Category" type="submit"/>
	</form>
<?php endforeach; ?>

<a href="<?php echo site_url('mimin_jonu/category') ?>" class="text-danger">Back to categories list</a>